#ifndef ACCUM1_HPP
#define ACCUM1_HPP

template <typename T>
inline T accum(T const* beg, T const* end)
{
	T total = T();
	while (beg != end)
	{
		total += *beg;
		++beg;
	}
	return total;
}
#endif